<?php

class Simulacra_Cell extends Simulacra_Core
{
  public $filename;
  public $caption;
  public $alt_row;
  public $thumb1_filename;
  public $thumb2_filename;

  function __construct($filename)
  {
    if (is_readable($filename)) {
      $this->filename = $filename;

    } else {
      echo "file not readable";
      exit;
    }

    if ($this->isThumbnailed($this->cfg_thumb1_size) == false) {
      $this->createThumbnail($this->cfg_thumb1_size);
    }

    if ($this->isThumbnailed($this->cfg_thumb2_size) == false) {
      $this->createThumbnail($this->cfg_thumb2_size);
    }
  }
}

?>
